<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
  <title>sprint detail</title>
  <meta name="description" content="">
  <meta name="keywords" content="scrum,agile,project management">
  <meta http-equiv="Content-Type"
 content="text/html; charset=iso-8859-1">
    <style type="text/css">
		<%@ include file="/WEB-INF/css/style.css" %>
	</style>
	<script src="jquery-1.4.4.min.js"> </script>
	<script type="text/javascript">
	$(document).ready(function () {
        $('#close').click(function () {
            window.opener.location.reload(true);
            window.close();
        });
    });
	</script>


</head>
<body onunload="window.opener.location.reload();">
<div class="page-inpop">
<div class="pagepop">
<div class="main">
<div class="contentpop">
	<h2 class="sidebar1">Sprint management</h2>
				    <form action="SprintDetails" method="post">
							<input type="hidden" name="sprid" value="${selectSprint.id}"/>
			 				<p><b>Sprint name: <input type="text" name="name" value="${selectSprint.name}"></b></p>
			 				<p><b>Sprint dateStart[yyyy-MM-dd]: <input type="date" name="dateStart" value="${selectSprint.dateStart}"></b></p>
			 				<p><b>Sprint dateEnd[yyyy-MM-dd]: <input type="date" name="dateEnd" value="${selectSprint.dateEnd}"></b></p>
			 				<p><b>Proposed task:
							<c:forEach items="${userStories}" var="ust">
								<p><input type="checkbox" name="userStories" value="${ust.id}"/>${ust.name} - ${ust.description}</p>
					        </c:forEach>  
			 				</p>
			 				<input id=plus type="submit" name="action" value="Add"/>
			 				<c:if test="${selectSprint.id!=null }"> <input id=edit type="submit" name="action" value="Update"/></c:if>
					</form>
					   		
					<p align="right"><input type='button' id='close' value='Close' /></p>
</div>
</div>
</div>
</div>
</body>
</html>